<?php

namespace app\message\controller;
use robot\Robot;
use think\Controller;
use think\Db;

class Template extends Controller
{
	public function send()
	{
		$this->log(input('access_token'));
		$this->log(json_encode(input('post.')));
		exit;
	}

	public function log($str)
	{
		file_put_contents("./api.txt", date("Y-m-d H:i:s")."--".$str."\n",FILE_APPEND);
	}
}